package com.ymlyj666.onlinechat.dao;

import java.io.Serializable;
import java.util.List;

public interface BaseDao<Model, ID extends Serializable> {
    Model save(Model model);

    int delete(Model model);

    int delete(ID id);

    Model findOne(ID id);

    List<Model> findAll();
}
